/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.wares.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 停用商品Entity
 * @author jyangye
 * @version 2018-01-15
 */
public class VivoWaresCloseJs extends DataEntity<VivoWaresCloseJs> {
	
	private static final long serialVersionUID = 1L;
	private Integer waresId;		// 商品id
	private String waresName;		// 商品名称
	private String waresColorId;		// 商品颜色
	private String waresCode;		// 商品编码
	private String waresStatus;		// 商品状态
	private String closeReason;		// 关闭原因
	private String operator;		// 关闭人

    private String zone; // 区域
	
	public VivoWaresCloseJs() {
		super();
	}

	public VivoWaresCloseJs(String id){
		super(id);
	}

	@NotNull(message="商品id不能为空")
	@ExcelField(title="商品id", align=2, sort=20)
	public Integer getWaresId() {
		return waresId;
	}

	public void setWaresId(Integer waresId) {
		this.waresId = waresId;
	}
	
	@Length(min=1, max=32, message="商品名称长度必须介于 1 和 32 之间")
	@ExcelField(title="商品名称", align=2, sort=30)
	public String getWaresName() {
		return waresName;
	}

	public void setWaresName(String waresName) {
		this.waresName = waresName;
	}
	

	public String getWaresColorId() {
		return waresColorId;
	}

	public void setWaresColorId(String waresColorId) {
		this.waresColorId = waresColorId;
	}
	
	@Length(min=1, max=32, message="商品编码长度必须介于 1 和 32 之间")
	@ExcelField(title="商品编码", align=2, sort=50)
	public String getWaresCode() {
		return waresCode;
	}

	public void setWaresCode(String waresCode) {
		this.waresCode = waresCode;
	}
	
	@Length(min=0, max=1, message="商品状态长度必须介于 0 和 1 之间")
	@ExcelField(title="商品状态", align=2, sort=60)
	public String getWaresStatus() {
		return waresStatus;
	}

	public void setWaresStatus(String waresStatus) {
		this.waresStatus = waresStatus;
	}
	
	@Length(min=0, max=64, message="关闭原因长度必须介于 0 和 64 之间")
	@ExcelField(title="关闭原因", align=2, sort=70)
	public String getCloseReason() {
		return closeReason;
	}

	public void setCloseReason(String closeReason) {
		this.closeReason = closeReason;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

    @Length(min=0, max=32, message="区域长度必须介于 0 和 32 之间")
    @ExcelField(title="所属区域", align=2, sort=90, dictType = "emp_zone")
    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }
}